<h1>Mural de Vagas</h1>


<% @vacancies.each do |vacancy| %>
	
	<div class="vacancy-title">
    	<b>T&iacute;tulo da vaga:</b>&nbsp;&nbsp;<%= vacancy.title %>
	</div>
    <div class="vacancy-description">
    	<b>Descri&ccedil;&atilde;o:</b>&nbsp;&nbsp;<%= vacancy.description %>
	</div>
    <div class="vacancy-enterprise-name">
    	<b>Nome da empresa:</b>&nbsp;&nbsp;<%= vacancy.enterprise.name %>
    </div>
    
    <div class="options">
    	<%= link_to 'Detalhes', vacancy %>
    	<%= link_to 'Editar', edit_vacancy_path(vacancy) %>
    	<%= link_to 'Delete', vacancy, confirm: 'Are you sure?', method: :delete %>
    </div>
<% end %>

<br />

<%= link_to 'Anunciar Vaga', new_vacancy_path %>
